package com.example.wxminiprogram.service;
import com.example.wxminiprogram.pojo.Goods;
import com.example.wxminiprogram.pojo.GoodsList;
import org.springframework.web.multipart.MultipartFile;
import java.util.List;

public interface GoodsService {

    List<Goods> list();

    Goods query(Integer id);

    List<Goods> listToShop(Integer shop_id);

    Goods modifyGoods(Goods goods);

    void insert(Goods goods);

    GoodsList search(Integer cid, String query, Integer pagenum, Integer pagesize);

    void deleteGoodsById(Integer id);
    void uploadIcon(MultipartFile multipartFile,Integer id);
    void uploadIntroduce(MultipartFile multipartFile,Integer id);
    void uploadSwiper(MultipartFile multipartFile,Integer id);

    void updateQualityById(Goods goods);
}
